export function  convertData(list,parentId){
    let retList=[];
    for(let i=0;i<list.length;i++){
        let item=list[i];
        let treeNodeData={}
        treeNodeData['id']=item.id;
        treeNodeData['key']='key_'+item.id;
        treeNodeData['title']=item.name;
        treeNodeData['parentId']=item.parentId;
        treeNodeData['originTitle']=item.name;
        if(item.parentId==parentId){
            let children=convertData(list,item.id);
            treeNodeData["children"]=children;
            retList.push(treeNodeData);
        }
    }
    return retList;
}